package com.ruoyi.ordersubscriberefundrecord.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ordersubscriberefundrecord.mapper.OrderSubscribeRefundRecordMapper;
import com.ruoyi.ordersubscriberefundrecord.domain.OrderSubscribeRefundRecord;
import com.ruoyi.ordersubscriberefundrecord.service.IOrderSubscribeRefundRecordService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-14
 */
@Service
public class OrderSubscribeRefundRecordServiceImpl implements IOrderSubscribeRefundRecordService 
{
    @Autowired
    private OrderSubscribeRefundRecordMapper orderSubscribeRefundRecordMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public OrderSubscribeRefundRecord selectOrderSubscribeRefundRecordById(Long id)
    {
        return orderSubscribeRefundRecordMapper.selectOrderSubscribeRefundRecordById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param orderSubscribeRefundRecord 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<OrderSubscribeRefundRecord> selectOrderSubscribeRefundRecordList(OrderSubscribeRefundRecord orderSubscribeRefundRecord)
    {
        return orderSubscribeRefundRecordMapper.selectOrderSubscribeRefundRecordList(orderSubscribeRefundRecord);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param orderSubscribeRefundRecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertOrderSubscribeRefundRecord(OrderSubscribeRefundRecord orderSubscribeRefundRecord)
    {
        orderSubscribeRefundRecord.setCreateTime(DateUtils.getNowDate());
        return orderSubscribeRefundRecordMapper.insertOrderSubscribeRefundRecord(orderSubscribeRefundRecord);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param orderSubscribeRefundRecord 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateOrderSubscribeRefundRecord(OrderSubscribeRefundRecord orderSubscribeRefundRecord)
    {
        return orderSubscribeRefundRecordMapper.updateOrderSubscribeRefundRecord(orderSubscribeRefundRecord);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteOrderSubscribeRefundRecordByIds(Long[] ids)
    {
        return orderSubscribeRefundRecordMapper.deleteOrderSubscribeRefundRecordByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteOrderSubscribeRefundRecordById(Long id)
    {
        return orderSubscribeRefundRecordMapper.deleteOrderSubscribeRefundRecordById(id);
    }
}
